]> dgit.raspbian.org Git - linux-4.9.git/commit
smsc95xx: Use skb_cow_head to deal with cloned skbs
authorJames Hughes <james.hughes@raspberrypi.org>
Wed, 19 Apr 2017 10:13:40 +0000 (11:13 +0100)
committerpopcornmix <popcornmix@gmail.com>
Sat, 22 Apr 2017 19:17:08 +0000 (20:17 +0100)
commit15d2d0a726ac4c02802e8861befcfbe966d8554d
treed7a2a51bdbb85bca2e2201678d4e3f0454e05dc5
parentc7cfbb473c1eed52320c8d3c71d368c60590a375
smsc95xx: Use skb_cow_head to deal with cloned skbs

The driver was failing to check that the SKB wasn't cloned
before adding checksum data.
Replace existing handling to extend/copy the header buffer
with skb_cow_head.

Signed-off-by: James Hughes <james.hughes@raspberrypi.org>
Acked-by: Eric Dumazet <edumazet@google.com>
Acked-by: Woojung Huh <Woojung.Huh@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/smsc95xx.c